// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import _ from "lodash";
import vuescroll from "vuescroll/dist/vuescroll-native";
import Fragment from "vue-fragment";
import "vuescroll/dist/vuescroll.css";
import "element-ui/lib/theme-chalk/index.css";
import requests from "./api/util/apiService";
import getLocalData from "./api/util/localApi";
import axios from "axios";
import "./components/index.js";

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(vuescroll);
Vue.use(Fragment.Plugin);
Vue.prototype.$ajax = requests.requests;
Vue.prototype.$local = getLocalData.getLocalData;
Vue.prototype.$localHttp = axios;
/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  template: "<App/>",
  // components: { App }  vue1.0的写法
  render: h => h(App) // vue2.0的写法
});
